package com.gupaoedu.vip.factory.abstr;

/**
 * Created by zhaozhonghai on 2017/5/24.
 */
public class AbstractFactoryTest {
    public static void main(String[] args){
        DefaultFactory df=new DefaultFactory();
        System.out.println(df.getDrink().getName());

        System.out.println(df.getDrink("sprite").getName());
    }
}
